﻿<!DOCTYPE html>
<html>
<head>
    <title>重庆电力公司车辆管理系统</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Main.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui.css")" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/My97DatePicker/WdatePicker.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/user/user_script.js")" type="text/javascript"></script>

    @*<link rel="shortcut icon" href="~/favicon.ico"/>*@

    @Html.DevExpress().GetStyleSheets( 
        new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout }, 
        new StyleSheet { ExtensionSuite = ExtensionSuite.Editors }, 
        new StyleSheet { ExtensionSuite = ExtensionSuite.HtmlEditor }, 
        new StyleSheet { ExtensionSuite = ExtensionSuite.GridView }, 
        new StyleSheet { ExtensionSuite = ExtensionSuite.PivotGrid },
        new StyleSheet { ExtensionSuite = ExtensionSuite.Chart },
        new StyleSheet { ExtensionSuite = ExtensionSuite.Report },
	    new StyleSheet { ExtensionSuite = ExtensionSuite.Scheduler },
	    new StyleSheet { ExtensionSuite = ExtensionSuite.TreeList }
    )
    @Html.DevExpress().GetScripts( 
        new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout }, 
        new Script { ExtensionSuite = ExtensionSuite.HtmlEditor }, 
        new Script { ExtensionSuite = ExtensionSuite.GridView }, 
        new Script { ExtensionSuite = ExtensionSuite.PivotGrid },
        new Script { ExtensionSuite = ExtensionSuite.Editors }, 
        new Script { ExtensionSuite = ExtensionSuite.Chart },
        new Script { ExtensionSuite = ExtensionSuite.Report },
	    new Script { ExtensionSuite = ExtensionSuite.Scheduler },
	    new Script { ExtensionSuite = ExtensionSuite.TreeList }
    )

</head>
<body>
    @RenderBody()
    @Html.DevExpress().LoadingPanel(
    settings => {
        settings.Name = "main_loadingPanel";
        settings.Modal = true;
        settings.Styles.LoadingDiv.BackColor = Color.White;
    }).GetHtml()
</body>
</html>
<script type ="text/javascript">

    $(document).ready(function () {
        BindSpinner();
    });

    function BindSpinner() {
        $("#main_loadingPanel").bind("ajaxSend", function () {
            main_loadingPanel.Show();
        }).bind("ajaxStop", function () {
            main_loadingPanel.Hide();
        }).bind("ajaxError", function () {
            main_loadingPanel.Hide();
        }).bind("ajaxSuccess", function () {
            main_loadingPanel.Hide();
        });
    };
    function retriveChildDept() {
        cascadeDropDown('DEPT_CODE', 'CHILD_DEPT', '@Url.Action("GetChildDept","Common")');
    };
    function retriveCarList(deptname, childname) {
        cascadeDropDown(deptname, childname, '@Url.Action("GetCarList","Common")');
    };

    function retriveChildDept2(deptname,childname) {
        cascadeDropDown(deptname, childname, '@Url.Action("GetChildDept","Common")');
    };

    
</script>